package leetcodecompetition.D362;

/**
 * @Author: Siantar
 * @Date: 2023-09-10-10:38
 * @Description: 1.0
 */
public class T8049 {
    public boolean isReachableAtTime(int sx, int sy, int fx, int fy, int t) {
        if (sx == fx && sy == fy && t == 1) return false;
        return Math.max(Math.abs(sx - fx), Math.abs(sy - fy)) + 1 <= t;
    }
}
